import request from '@/utils/request.js'
// import request from '@/utils/request/index.js'

// 创建订单
export function createOrder(data) {
	return request.post(`/urbanl/order/create`, data);
}

// 微信支付
export function payOrder({
	orderNo
}) {
	return request.get(`/urbanl/order/pay/${orderNo}`)
}

// 订单详情
export function getOrder({
	orderNo
}) {
	return request.get(`/urbanl/order/${orderNo}`)
}

// 取消订单
export function cancelOrder({
	orderNo
}) {
	return request.get(`/urbanl/order/cancel/${orderNo}`)
}

// 支付查询
export function queryOrder({
	orderNo
}) {
	return request.get(`/urbanl/order/query/${orderNo}`)
}

// 订单列表
export function getOrderList(params) {
	return request.get(`/urbanl/order/list`, params)
}
